package studio.raptor.extractor.segment.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import studio.raptor.extractor.segment.config.EventSourceConfig;
import studio.raptor.extractor.segment.dao.EventSourceConfigDao;

/**
 * Created by liuyong8 on 2017/8/9.
 */
@Service
public class EventSourceConfigService {
    private static final Logger log = LoggerFactory.getLogger(EventSourceConfigService.class);

    @Autowired
    private EventSourceConfigDao eventSourceConfigDao;

    /**
     * 查询eventSourceConfig通过kindId
     * @param kindId kindId
     * @return EventSourceConfig eventSourceConfig
     */
    public EventSourceConfig findEventSourceConfigByKindId(Integer kindId) throws Exception{
        return eventSourceConfigDao.queryEventSourceConfigByKindId(kindId);
    }
}
